<?php
/*
主题的顶部部分，主要包括菜单栏
*/
?>
<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <?php require("seo.php"); ?>
  <meta name="description" content="<?php echo $description; ?>" />
  <meta name="keywords" content="<?php echo $keywords; ?>" />
  <title>
    <?php if ( is_home() ) {
        bloginfo('name'); echo " - "; bloginfo('description');
    } elseif ( is_category() ) {
        single_cat_title(); echo " - "; bloginfo('name');
    } elseif (is_single() || is_page() ) {
        single_post_title();
    } elseif (is_search() ) {
        echo "搜索结果"; echo " - "; bloginfo('name');
    } elseif (is_404() ) {
        echo '页面未找到!';
    } else {
        wp_title('',true);
    } ?>
  </title>
  <link rel="profile" href="http://gmpg.org/xfn/11">
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css">
  <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
  <script src="http://libs.useso.com/js/jquery/1.11.0/jquery.min.js"></script>
  <script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
  <script src="<?php bloginfo('template_url'); ?>/library/360so.js"></script>
  <?php wp_head(); ?>
<!--百度统计代码-->  
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?c129f7e3520c443bee2c70dfe6f58eb0";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>  
</head>

<body class="body">
<div id="page" class="">
  <header id="header" class="header" role="banner">
    <div class="header-top container-fluid">
	  <div class="header-top-main  container">
		<div class="row">
			<div class="site-title col-lg-2 col-md-2 col-sm-3 col-xs-6">
			  <div class="row">
			  <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a>		
			  </div>
			</div>
			<div class="site-subtitle col-lg-3 visible-lg">
			  <p class="navbar-text"><?php  bloginfo('description'); ?></p>
			</div>
			<form class="top-search col-lg-3 col-md-3 col-sm-4 hidden-xs " id="" action="http://www.so.com/s" role="search" target="_blank">
			  <div class="input-group">
				<input type="text" autocomplete="on" name="q" id="so360_keyword" class="form-control" placeholder="由360提供搜索结果">
				<input type="hidden" name="ie" value="utf8">
				<input type="hidden" name="src" value="zz">
				<input type="hidden" name="site" value="gamux.org">
				<input type="hidden" name="rg" value="1">
				<span class="input-group-btn">
				  <button type="submit" id="so360_submit" class="btn btn-default">搜索</button>
				</span>
			  </div>
			</form>

			<div class="site-translation col-lg-2 col-md-2 visible-md visible-lg navbar-btn">
			  <div class="btn-group">
			      <button type="button" class="btn btn-primary">
					<a href="">Languages</a>
				  </button>
				  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
				    <span class="caret"></span>
				    <span class="sr-only">Toggle Dropdown</span>
				  </button>
				  <ul class="dropdown-menu" role="menu">
					<li><a href="http://translate.google.com.ru/translate?hl=zh-CN&sl=zh-CN&tl=ru&u=http%3A%2F%2Fgamux.org%2F">Русский язык</a></li>
					<li><a href="http://translate.google.com/translate?hl=zh-CN&ie=UTF8&prev=_t&sl=zh-CN&tl=en&u=http://gamux.org/">English</a></li>
					<li><a href="http://translate.google.com.tw/translate?hl=zh-CN&sl=zh-CN&tl=zh-TW&u=http%3A%2F%2Fgamux.org%2F">正體中文</a></li>
					<li class="divider"></li>
					<li><a href="<?php echo esc_url(home_url('/')); ?>">简体中文</a></li>
				  </ul>
			  </div>
			</div>
			<div class="top-login col-lg-2 col-lg-2 col-md-2 col-sm-3 col-xs-6 navbar-right">
			<?php if (is_user_logged_in()) { ?>
			  <div class="logined">
				<div class="username"><?php global $current_user;
				get_currentuserinfo();
				echo '用户名: ' . $current_user->user_login . "\n";
				?>
				</div>
				<a href="<?php bloginfo('url'); ?>/wp-admin">后台管理</a>
				<a href="<?php echo wp_logout_url(get_permalink()); ?>" title="">退出登录</a>
			  </div>
			<?php } else { ?>
			  <div class="notlogin">
			  <a href="<?php echo wp_login_url(get_permalink()); ?>">登录</a>
			  <a href="<?php echo wp_login_url(get_permalink()); ?>/wp-login.php?action=register">注册</a>
			  <a href="<?php echo wp_login_url(get_permalink()); ?>/wp-login.php?action=lostpassword">找回密码</a>
			  </div>
			<?php } ?>
			</div>
		</div>
	  </div>
	</div>
	<nav class="header-bottom navbar-static-top" role="navigation">
	<div class="container">
	<div class="row">
	  <div class="navbar-header">
		<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
		</button>
	  </div>
	  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
	  	<?php wp_nav_menu( array(
		  'theme_location' =>  'header',
		  'menu_class' =>      'header-menu list-inline',
		  'depth' => 1,
		  ) ); ?>
	  </div>
	</div>
	</div>
	</nav>
  </header>
  <div id="mainer" class="container-fluid">
    <div id="mainer-inner" class="row">
	<div class="container">
	<div class="row mainer-body">
